package com.bgrconsulting.stockorderentry.service.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.appengine.api.datastore.Key;

@XmlRootElement(name = "dtBalance")
@PersistenceCapable
public class DTBalance {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	private String accountId;
	
	@Persistent
	private String masterAccount;
	
	@Persistent
	private Double dtCash;
	
	@Persistent
	private Double dtMargin;
	
	@Persistent
	private Double dtMarginSecurities;
	
	@Persistent
	private Double dtNonMarginableSecuritiesAndOptions;
	
	@Persistent
	private String dtStatus;
	
	public DTBalance(String accountId, String masterAccount, Double dtCash, Double dtMargin, Double dtMarginSecurities, Double dtNonMarginableSecuritiesAndOptions, String dtStatus) {
		this.dtCash = dtCash;
		this.dtMargin = dtMargin;
		this.dtMarginSecurities = dtMarginSecurities;
		this.dtNonMarginableSecuritiesAndOptions = dtNonMarginableSecuritiesAndOptions;
		this.dtStatus = dtStatus;
	}
	
	public DTBalance() {
		
	}
	
	public void setMasterAccount(String masterAccount) {
		this.masterAccount = masterAccount;
	}
	
	public String getMasterAccount() {
		return this.masterAccount;
	}
	
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getAccountId() {
		return this.accountId;
	}
	
	public void setDTCashBalance(Double dtCash) {
		this.dtCash = dtCash;
		
	}
	
	public Double getDTCashBalance() {
		return this.dtCash;
		
	}
	
	public void setDTMarginBalance(Double dtMargin) {
		this.dtMargin = dtMargin;
		
	}
	
	public Double getDTMarginBalance() {
		return this.dtMargin;
		
	}
	
	public void setDTMarginSecurities(Double dtMarginSecurities)  {
		this.dtMarginSecurities = dtMarginSecurities;
		
	}
	
	public Double getDTMarginSecurities()  {
		return this.dtMarginSecurities;
		
	}
	
	public void setDTNonMarginableSecuritiesAndOptions(Double dtNonMarginableSecuritiesAndOptions)  {
		this.dtNonMarginableSecuritiesAndOptions = dtNonMarginableSecuritiesAndOptions;
		
	}
	
	public Double getDTNonMarginableSecuritiesAndOptions()  {
		return this.dtNonMarginableSecuritiesAndOptions;
		
	}
	
	public void setDTStatus(String dtStatus) {
		this.dtStatus = dtStatus;
	}
	
	public String getDTStatus() {
		return this.dtStatus;
	}
	
	public void setKey(Key key) {
	    this.key = key;
	}
	
	public Key getKey() {
	    return this.key;
	}
}
